package com.ai.mapper.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 会话
 * </p>
 *
 * @author wu_chen
 * @since 2024-07-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Channel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 业务id
     */
    private String seqId;

    /**
     * 会话类型 1 ai智能会话
     */
    private Integer channelType;

    /**
     * 发起成员类型
     */
    private Integer initMemberType;

    /**
     * 发起成员id
     */
    private Long initMemberId;

    /**
     * 目标成员id
     */
    private Integer targetMemberType;

    /**
     * 目标成员id
     */
    private Long targetMemberId;

    /**
     * 首次来源
     */
    private Integer initSource;

    /**
     * 最近发起来源
     */
    private Integer lastSource;

    /**
     * 创建时间
     */
    private LocalDateTime dbCreatedAt;

    /**
     * 更新时间
     */
    private LocalDateTime dbUpdatedAt;

    /**
     * 逻辑删除(0:未删除,1:已删除)
     */
    private Integer dbDeleted;


}
